package com.action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

public class Addtocart {
	
	public String execute()throws Exception
	{
		Map session;
		session=ActionContext.getContext().getSession();
		
		String ebayuserid=(String)session.get("ebayuserid");
		System.out.println("The ebayuserid is"+ebayuserid);
		
		
		if(ebayuserid==null)     // To check if the user has logged in or not
		{
			return "signin";
		}
	
		
		
		
		return "SUCCESS";
	}

}
